<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--适应移动端-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0 ">
    <title>巨人的风车-标签</title>
    <link rel="stylesheet" th:href="@{/Semantic-UI-2.4.1/dist/semantic.min.css}">
    <link rel="stylesheet" th:href="@{/css/me.css}">
    <!--图标-->
    <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/components/icon.min.css'>
</head>
<body>
<!--导航-->
 <nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small ">
     <div class="ui container">
         <div class="ui inverted secondary stackable menu">
             <h2 class="ui teal header item">追风的旅程</h2>
             <a th:href="@{/}" class=" m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
             <a th:href="@{/types/-1}" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
             <a th:href="@{/tags/-1}" class="active m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
             <a th:href="@{/archives}" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
             <a th:href="@{/about}" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
             <div class="right m-item item m-mobile-hide">
                 <form th:action="@{/search}" name="search" method="get">
                     <div class="ui action input inverted transparent ">
                         <input type="text" name="query" placeholder="search..." th:value="${query}">
                         <button class="ui icon button" type="submit">
                             <i class="search icon"></i>
                         </button>
                     </div>
                 </form>
             </div>
         </div>
     </div>
     <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
         <i class="sidebar icon"></i>
     </a>
     <!--引入隐藏背景资源-->
     <img th:src="@{/images/beijing.jpg}" class="m-hidden" alt="">
 </nav>

<!--中间内容-->
 <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <!--header-->
            <div class="ui top attached segment">
                <div class="ui two column grid">
                    <div class="column">
                        <h3 class="ui teal header">标签</h3>
                    </div>
                    <div class="right aligned column">
                        共<h2 class="ui orange header m-inline-block m-text-thin" th:text="${#arrays.length(tags)}">14</h2>个
                    </div>
                </div>
            </div>

            <div class="ui attached segment m-padded-tb-large">
                <a  th:href="@{/tags/{id}(id=${tag.id})}"  th:classappend="${tag.id==activeId} ? 'teal'" class="ui  basic large left pointing label m-margin-tb-tiny" th:each="tag:${tags}">
                    <span th:text="${tag.name}">学习日志</span><div class="detail" th:text="${#arrays.length(tag.blogList)}">13</div>
                </a>
            </div>

            <div class="ui top attached teal segment">
                <div class="ui padded vertical segment m-padded-tb-large" th:each="blog:${page.list}"><!--vertical垂直-->
                    <div class="ui middle aligned mobile reversed stackable grid" >
                        <!--左边-->
                        <div class="eleven wide column">
                            <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">关于暑期实习的一些碎碎念</a></h3>
                            <p class="m-text" th:text="|${blog.description}....|">暑期实习既然进不了大厂，那就海投一波中厂。这个过程中开始继续刷算法以及深入系统的学习专业知识（比如Linux，最近看面经整理知识，但是我无法将这些知识的来龙去脉融会贯通的组织起来），提升自己实力（最近确实有点摆了，学习效率奇低），而第一步就是删了我手机里的所有游戏。</p>
                            <div class="ui grid">
                                <div class="row">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img th:src="@{${blog.user.picture}}" alt="" class="ui avatar image">
                                                <div class="content"><a href="#" th:text="${blog.user.nickName}" class="header">曾豪杰</a></div>
                                            </div>
                                            <div class="item">
                                                <!--                                                <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2012</span>-->
                                                <i class="calendar icon"></i><span th:text="${blog.updateTime}">2012</span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i> <span th:text="${blog.views}">2654</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="right aligned five wide column">
                                        <a href="#" th:href="@{/types/{id}/(id=${blog.types.id})}" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${blog.types.name}">认知升级</a>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="column">
                                        <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" th:classappend="${tag.id==activeId} ? 'teal'" class="ui basic  left pointing label m-padded-mini m-text-thin" th:each="tag:${blog.tagList}" th:text="${tag.name}">方法论</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--右边-->
                        <div class="five wide column">
                            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                <img th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                            </a>
                        </div>
                    </div>
                </div>
            </div>

            <div class="class ui bottom attached segment">
                <div class="ui   two column grid">
                    <div class="column">
                        <a href="#" th:href="@{/tags/{id}/(pageNum=${page.hasPreviousPage}?${page.prePage}:1,id=${activeId})}"  class="ui mini teal basic button">上一页</a>
                    </div>
                    <div class="right aligned column">
                        <a href="#" th:href="@{/tags/{id}/(pageNum=${page.hasNextPage}?${page.nextPage}:${page.pages},id=${activeId})}" class="ui mini teal basic button">下一页</a>
                    </div>
                </div>
            </div>
        </div>
 </div>

<!--底部footer-->
<footer class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">海天梦离</h4>
                <div class="ui inverted link list">
                    <div class="item">
                        <img th:src="@{/images/picfooter.png}" class="ui rounded image" alt="" style="width: 110px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">最新博客</h4>
                <div id="newBlog-container">
                    <div class="ui inverted link list" th:fragment="newBlogList">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item m-text-lined" th:each="blog:${newblogs}" th:text="${blog.title}">用户故事</a>
                    </div>
                </div>

            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">联系我</h4>
                <div class="ui inverted link list">
                    <p href="#" class="item m-text-lined" th:text="#{qq}">QQ:1965411732</p>
                    <p href="#" class="item m-text-lined" th:text="#{email}">email:1965411732@qq.com</p>
                    <a href="https://gitee.com/Azenghaojie/myblogs/tree/master"  class="item m-text-lined" >前往git开源仓库</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">博客</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini" th:text="#{info}">此博客为Dreamchaser追梦的个人博客。在这里，记录了我的技术博客，记录了我的经 验分享，也记录了我生活的点滴，记录了我的成长。我特别喜欢一个词，那就是"追梦"，这也是我昵称的由来，同时也是我和我的团队筹备的一款app的名字 。人生在世，必然会有自己的梦想，不论这个梦想是大是小，是遥不可及还是触手可得，你所要坚信的便只有一件事——有梦便一定要去追，我们都该是追梦人！不论现在处境如何，我们都要去拼一拼，不试怎么知道你会不会成功呢？愿大家都能以梦为马，不负青春韶华！</p>
            </div>
        </div>
        <div class="ui inverted section divider"> </div>
        <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright © 2022 杰</p>
        <br>
        <a href="https://beian.miit.gov.cn/" target="_blank">渝ICP备2025066220号-1</a>
    </div>
</footer>

<script th:src="@{/js/jquery-3.5.1.min.js}"></script>
<script th:src="@{/Semantic-UI-2.4.1/dist/semantic.min.js}"></script>
<script>
    $('#newBlog-container').load(/*[[@{/footer/newBlog}]]*/"/footer/newBlog");
</script>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>
</body>
</html>
